/*
 * Created on Dec 13, 2003
 *
 * To change the template for this generated file go to
 * Window - Preferences - Java - Code Generation - Code and Comments
 */
package org.vectrics.common.tree;

import java.util.Collection;
import java.util.List;



/**
 * @author mmoore
 */
public interface TreeNode {
	public void setParent(TreeNode parent);
	public void remove(TreeNode node, boolean recurse);
	public TreeNode findNode(String id);
	public int compareTo(Object node);
	public TreeNode addChild();
	public TreeNode addChild(TreeNode child);
	public TreeNode getParent();
	public List getChildren();
	public int getDepth();
	public TreeNode getNextSibling();
	public Collection getBranchCollection();
	public void setId(String id);
	public String getId();
	public String getHierarchy();
	public String getHierarchy(int indent);
	public int getLevel();
	public List getChildrenAtLevel(int relativeLevel);
}
